package com.henry.web;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by 峥桂 on 2017/5/20.
 */
@RestController
public class IndexController {

    @RequestMapping(value = "/index",method = RequestMethod.GET)
    public ModelAndView index(){
        ModelAndView view=new ModelAndView("index");
        return view;
    }
    @RequestMapping(value = "/",method = RequestMethod.GET)
    public ModelAndView index_(){
        ModelAndView view=new ModelAndView("index");
        return view;
    }
    @RequestMapping(value = "/defaultFtl", method = RequestMethod.GET)
    public ModelAndView defaultFtl(Model model) {

        ModelAndView view=new ModelAndView("comm/defaultFtl");
        return view;
    }
    @RequestMapping(value = "/helpdoc", method = RequestMethod.GET)
    public ModelAndView helpdoc(Model model) {
        ModelAndView view=new ModelAndView("help/helpdoc");
        return view;
    }
}
